<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>微信自定义菜单</title>
    <meta name="viewport" content="width=1000px,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <link rel="stylesheet" href="{:C('BOOTSTRAP_CSS')}css/bootstrap.min.css">
    <style>
        table{
            margin:0 auto;
            margin-top:5%;
        }
        th,tr{
            text-align:center
        }
        input{
            color:#000;
        }
        select{
            color:#000;
            height:30px;
        }
    </style>
</head>
<body>
<div class="container-full">
    <div class="col-lg-12">
        <form method="post" action="{:U('Index/setMenu')}">
            <textarea name="menu"  rows="10" cols="100" style="margin: 0 auto">{$menuList}</textarea>
            <button type="submit">更改</button>
        </form>
        <!--<table class="table table-bordered">-->
            <!--<thead>-->
            <!--<tr>-->
                <!--<th colspan="10">微信自定义菜单</th>-->
            <!--</tr>-->
            <!--<tr>-->
                <!--<th>提示</th>-->
                <!--<th>左菜单</th>-->
                <!--<th>选择事件</th>-->
                <!--<th>VIEW</th>-->
                <!--<th>中菜单</th>-->
                <!--<th>选择事件</th>-->
                <!--<th>VIEW</th>-->
                <!--<th>右菜单</th>-->
                <!--<th>选择事件</th>-->
                <!--<th>VIEW</th>-->
            <!--</tr>-->
            <!--</thead>-->
            <!--<tbody>-->
            <!--<tr class="btn-success">-->
                <!--<td>-->
                    <!--二级菜单-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="1" name="leftFiveName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="leftFiveSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="leftFiveView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="2" name="centerFiveName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerFiveSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerFiveView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="3" name="rightFiveName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightFiveSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightFiveView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
            <!--</tr>-->


            <!--<tr class="btn-success">-->
                <!--<td>-->
                    <!--二级菜单-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="1" name="leftFourName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="leftFourSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="leftFourView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="2" name="centerFourName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerFourSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerFourView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="3" name="rightFourName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightFourSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightFourView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
            <!--</tr>-->


            <!--<tr class="btn-success">-->
                <!--<td>-->
                    <!--二级菜单-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="1" name="leftThereName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="leftThereSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="leftThereView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="2" name="centerThereName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerThereSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerThereView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="3" name="rightThereName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightThereSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightThereView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
            <!--</tr>-->


            <!--<tr class="btn-success">-->
                <!--<td>-->
                    <!--二级菜单-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="1" name="leftTwoName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="leftTwoSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="leftTwoView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="2" name="centerTwoName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerTwoSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerTwoView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="3" name="rightTwoName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightTwoSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightTwoView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
            <!--</tr>-->


            <!--<tr class="btn-success">-->
                <!--<td>-->
                    <!--二级菜单-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="1" name="leftOneName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="leftOneSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="leftOneView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="2" name="centerOneName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerOneSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerOneView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" data-pid="3" name="rightOneName" value="" placeholder="输入二级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightOneSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightOneView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
            <!--</tr>-->



            <!--<tr class="btn-info">-->
                <!--<td>-->
                    <!--一级菜单-->
                <!--</td>-->
                <!--<foreach name="parent" item="parent">-->
                    <!--<td>-->
                        <!--<input type="text" name="leftName" value="{$parent['name']}" date-id="1" placeholder="输入一级菜单名称">-->
                    <!--</td>-->
                    <!--<td>-->
                        <!--<select name="leftSelect">-->
                            <!--<option value="click">click</option>-->
                            <!--<option value="view">view</option>-->
                            <!--<option value="scancode_push">scancode_push</option>-->
                            <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                            <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                            <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                            <!--<option value="pic_weixin">pic_weixin</option>-->
                            <!--<option value="location_select">location_select</option>-->
                        <!--</select>-->
                    <!--</td>-->
                    <!--<td>-->
                        <!--<input type="text" value="" name="leftView" placeholder="事件为VIEW时，跳转地址">-->
                    <!--</td>-->
                <!--</foreach>-->
                <!--&lt;!&ndash;-->
                <!--<td>-->
                    <!--<input type="text" date-id="2" name="centerName" value="" placeholder="输入一级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="centerSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="centerView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" date-id="2" value="" name="rightName" placeholder="输入一级菜单名称">-->
                <!--</td>-->
                <!--<td>-->
                    <!--<select name="rightSelect">-->
                        <!--<option value="click">click</option>-->
                        <!--<option value="view">view</option>-->
                        <!--<option value="scancode_push">scancode_push</option>-->
                        <!--<option value="scancode_waitmsg">scancode_waitmsg</option>-->
                        <!--<option value="pic_sysphoto">pic_sysphoto</option>-->
                        <!--<option value="pic_photo_or_album">pic_photo_or_album</option>-->
                        <!--<option value="pic_weixin">pic_weixin</option>-->
                        <!--<option value="location_select">location_select</option>-->
                    <!--</select>-->
                <!--</td>-->
                <!--<td>-->
                    <!--<input type="text" value="" name="rightView" placeholder="事件为VIEW时，跳转地址">-->
                <!--</td>-->
                <!--&ndash;&gt;-->
            <!--</tr>-->
            <!--<tr>-->
                <!--<td colspan="10">-->
                    <!--<button type="button" class="btn btn-danger" id="update">点击更新菜单(此操作不可逆转)</button>-->
                <!--</td>-->
            <!--</tr>-->
            <!--</tbody>-->
        <!--</table>-->
    </div>
</div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
    $(function(){
        id = prompt("请输入你的ID:","");
        pwd = prompt("请输入你的密码","");
        if (id != null && pwd != null){
            $.ajax({
                url:'{:U("/Home/Index/userAuth")}',
                type:'POST',
                data:{id:id,pwd:pwd},
                dataType:'text',
                success:function(data){
                    if(data == '1'){
                        alert('你验证通过了');
                    }else{
                        window.open('http://www.baidu.com/','_self');
                    }
                }
            })
        }else{
            window.open('http://www.baidu.com/','_self');
        }

        $('#update').click(function(){
            var leftFiveName    = $('input[name=leftFiveName]').val();
            var leftFiveSelect  = $('select[name=leftFiveSelect]').val();
            var leftFiveView    = $('input[name=leftFiveView]').val();

            var leftFourName    = $('input[name=leftFourName]').val();
            var leftFourSelect  = $('select[name=leftFourSelect]').val();
            var leftFourView    = $('input[name=leftFourView]').val();

            var leftThereName    = $('input[name=leftThereName]').val();
            var leftThereSelect  = $('select[name=leftThereSelect]').val();
            var leftThereView    = $('input[name=leftThereView]').val();

            var leftTwoName    = $('input[name=leftTwoName]').val();
            var leftTwoSelect  = $('select[name=leftTwoSelect]').val();
            var leftTwoView    = $('input[name=leftTwoView]').val();

            var leftOneName    = $('input[name=leftOneName]').val();
            var leftOneSelect  = $('select[name=leftOneSelect]').val();
            var leftOneView    = $('input[name=leftOneView]').val();

            var leftName    = $('input[name=leftName]').val();
            var leftSelect  = $('select[name=leftSelect]').val();
            var leftView    = $('input[name=leftView]').val();


            var centerFiveName    = $('input[name=centerFiveName]').val();
            var centerFiveSelect  = $('select[name=centerFiveSelect]').val();
            var centerFiveView    = $('input[name=centerFiveView]').val();

            var centerFourName    = $('input[name=centerFourName]').val();
            var centerFourSelect  = $('select[name=centerFourSelect]').val();
            var centerFourView    = $('input[name=centerFourView]').val();

            var centerThereName    = $('input[name=centerThereName]').val();
            var centerThereSelect  = $('select[name=centerThereSelect]').val();
            var centerThereView    = $('input[name=centerThereView]').val();

            var centerTwoName    = $('input[name=centerTwoName]').val();
            var centerTwoSelect  = $('select[name=centerTwoSelect]').val();
            var centerTwoView    = $('input[name=centerTwoView]').val();

            var centerOneName    = $('input[name=centerOneName]').val();
            var centerOneSelect  = $('select[name=centerOneSelect]').val();
            var centerOneView    = $('input[name=centerOneView]').val();

            var centerName    = $('input[name=centerName]').val();
            var centerSelect  = $('select[name=centerSelect]').val();
            var centerView    = $('input[name=centerView]').val();

            var rightFiveName    = $('input[name=rightFiveName]').val();
            var rightFiveSelect  = $('select[name=rightFiveSelect]').val();
            var rightFiveView    = $('input[name=rightFiveView]').val();

            var rightFourName    = $('input[name=rightFourName]').val();
            var rightFourSelect  = $('select[name=rightFourSelect]').val();
            var rightFourView    = $('input[name=rightFourView]').val();

            var rightThereName    = $('input[name=rightThereName]').val();
            var rightThereSelect  = $('select[name=rightThereSelect]').val();
            var rightThereView    = $('input[name=rightThereView]').val();

            var rightTwoName    = $('input[name=rightTwoName]').val();
            var rightTwoSelect  = $('select[name=rightTwoSelect]').val();
            var rightTwoView    = $('input[name=rightTwoView]').val();

            var rightOneName    = $('input[name=rightOneName]').val();
            var rightOneSelect  = $('select[name=rightOneSelect]').val();
            var rightOneView    = $('input[name=rightOneView]').val();

            var rightName    = $('input[name=rightName]').val();
            var rightSelect  = $('select[name=rightSelect]').val();
            var rightView    = $('input[name=rightView]').val();

            $.ajax({
                url:"{:U('/ZhuJiu/Index/setMenu')}",
                type:'POST',
                data:{
                    leftFiveName:leftFiveName,leftFiveSelect:leftFiveSelect,leftFiveView:leftFiveView,
                    leftFourName:leftFourName,leftFourSelect:leftFourSelect,leftFourView:leftFourView,
                    leftThereName:leftThereName,leftThereSelect:leftThereSelect,leftThereView:leftThereView,
                    leftTwoName:leftTwoName,leftTwoSelect:leftTwoSelect,leftTwoView:leftTwoView,
                    leftOneName:leftOneName,leftOneSelect:leftOneSelect,leftOneView:leftOneView,
                    leftName:leftName,leftSelect:leftSelect,leftView:leftView,
                    centerFiveName:centerFiveName,centerFiveSelect:centerFiveSelect,centerFiveView:centerFiveView,
                    centerFourName:centerFourName,centerFourSelect:centerFourSelect,centerFourView:centerFourView,
                    centerThereName:centerThereName,centerThereSelect:centerThereSelect,centerThereView:centerThereView,
                    centerTwoName:centerTwoName,centerTwoSelect:centerTwoSelect,centerTwoView:centerTwoView,
                    centerOneName:centerOneName,centerOneSelect:centerOneSelect,centerOneView:centerOneView,
                    centerName:centerName,centerSelect:centerSelect,centerView:centerView,
                    rightFiveName:rightFiveName,rightFiveSelect:rightFiveSelect,rightFiveView:rightFiveView,
                    rightFourName:rightFourName,rightFourSelect:rightFourSelect,rightFourView:rightFourView,
                    rightThereName:rightThereName,rightThereSelect:rightThereSelect,rightThereView:rightThereView,
                    rightTwoName:rightTwoName,rightTwoSelect:rightTwoSelect,rightTwoView:rightTwoView,
                    rightOneName:rightOneName,rightOneSelect:rightOneSelect,rightOneView:rightOneView,
                    rightName:rightName,rightSelect:rightSelect,rightView:rightView

                },
                dataType:'text',
                success:function(data){
//                    document.write(data);
                    if(data == '1'){
                        alert('数据更改成功！');
                    }else{
                        alert('error!');
                    }
                }
            })
        })
    })
</script>
<!--
<script>
    $(function(){
        $('button[type=submit]').click(function(){
            setCookie('menu', $('textarea[name=menu]').val());
        })
        $('textarea[name=menu]').val(getCookie('menu'));
    })
    function setCookie(name, value){
        var argv = setCookie.arguments;
        var argc = setCookie.arguments.length;
        var expires = (argc > 2) ? argv[2] : null;
        if(expires!=null){
            var LargeExpDate = new Date ();
            LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*1000*1000*3600*24));
        }
        document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString()));
    }
    function getCookie(Name){
        var search = Name + "="
        if(document.cookie.length > 0){
            offset = document.cookie.indexOf(search)
            if(offset != -1){
                offset += search.length
                end = document.cookie.indexOf(";", offset)
                if(end == -1) end = document.cookie.length
                return unescape(document.cookie.substring(offset, end))
            }
        else return ""
        }
    }
    function deleteCookie(name){
        var expdate = new Date();
        expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
        setCookie(name, "", expdate);
    }
</script>
-->
</body>
</html>